#ifndef _CUBE_H_
#define _CUBE_H_

#include "cpsystem.h"

class CCube : public CPSystem
{
protected:
	float m_tLifeSpan;	// How long the cube will exist
						// before disappearing (simulation seconds)

	void AddCubeFace(unsigned short i1, unsigned short i2,
				 unsigned short i3, unsigned short i4);

	void DrawShadow(GLfloat shadowMat[4][4]);
	void DrawSolid();
public:
	CCube(float x, float y, float z, float n);
	~CCube();

	void Influence(CPSystem* p);
	void Action(CPSystem* p);
	void Draw();

	void Reset();
};

#endif